import DefaultTheme from 'vitepress/theme'
import { Button } from '@l1n/vue-components'
import CodeDemo from '../components/CodeDemo.vue'
import './code-demo.css'

export default {
  extends: DefaultTheme,
  enhanceApp({ app }) {
    // 全局注册组件
    app.component('Button', Button)
    app.component('CodeDemo', CodeDemo)
  }
}